#!/bin/sh
exec > api/python/package/OpenPanel/error.py
perl -ne '
if (m!^#define (ERR_[^ ]+)\s+(0x[0-9a-f]+)\s*//\s*(.*)!)
{
	print "$1 = $2\n";
}' < error.h
